package top.auntie.dao;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import top.auntie.model.OrgType;
import top.auntie.model.OrgTypeExample;

@Repository
public interface OrgTypeDao {
    long countByExample(OrgTypeExample example);

    int deleteByExample(OrgTypeExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(OrgType record);

    int insertSelective(OrgType record);

    List<OrgType> selectByExample(OrgTypeExample example);

    OrgType selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") OrgType record, @Param("example") OrgTypeExample example);

    int updateByExample(@Param("record") OrgType record, @Param("example") OrgTypeExample example);

    int updateByPrimaryKeySelective(OrgType record);

    int updateByPrimaryKey(OrgType record);

    void insertSelectiveBatch(@Param("orgTypes") List<OrgType> orgTypes);
}